package shuaige.jdk.函数式接口.提供结果_Supplier;

import java.util.Random;
import java.util.function.Supplier;

public class Supplier_具体实现 {

    public static Supplier<Integer> 产生一个随机int = new Supplier<>() {
        @Override
        public Integer get() {
            return new Random().nextInt();
        }
    };

}
